package org.wenhuayuan.project.common.router

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import kotlinx.android.synthetic.main.activity_degrade_global.*
import org.wenhuayuan.project.common.R

@Route(path = "/degrade/global/activity")
class DegradeGlobalActivity : AppCompatActivity() {
//    @Autowired
//    @JvmField
//    var degrade_title:String? = null
//    @Autowired
//    @JvmField
//    var degrade_desc:String? = null
//    @Autowired
//    @JvmField
//    var degrade_action:String? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ARouter.getInstance().inject(this)

        setContentView(R.layout.activity_degrade_global)

        empty_view.setIcon(R.string.if_empty)

//        if (degrade_title != null) {
//            empty_view.setTitle(degrade_title!!)
//        }

//        if (degrade_desc != null) {
//            empty_view.setDesc(degrade_desc!!)
//        }
//
//        if (degrade_action != null) {
//            empty_view.setHelpAction(listener = View.OnClickListener {
//                var intent: Intent = Intent(Intent.ACTION_VIEW, Uri.parse(degrade_action))
//                startActivity(intent)
//            })
//        }

        action_back.setOnClickListener { onBackPressed() }

    }
}
